#include <Windows.h>
#include <iostream>

using namespace std;

int main()
{
    SHELLEXECUTEINFO info = { 0 };
    info.cbSize = sizeof(info);
    info.fMask = SEE_MASK_NOCLOSEPROCESS;
    info.hwnd = NULL;
    info.lpVerb = NULL;
    info.lpFile = "E:/Project/Repositories/cpp/cpp/httpserver/dist/py/dist/pppppp_MinGW@13.2.0_min.exe"; // 替换为要打开的程序的路径
    info.lpParameters = NULL;
    info.lpDirectory = NULL;
    info.nShow = SW_SHOW;

    if (ShellExecuteEx(&info))
    {
        WaitForSingleObject(info.hProcess, INFINITE);
        CloseHandle(info.hProcess);
    }
    else
    {
        cout << "Failed to open program." << endl;
    }

    return 0;
}